﻿using UnityEngine;
using System.Collections;

namespace net{
	public class netGameManager : MonoBehaviour {

		void Awake(){
			Debug.Log(Network.peerType);
		}
		
		//玩家离开游戏时销毁对象
		void OnPlayerDisconnected(NetworkPlayer player) {
			Debug.Log("Clean up after player " + player);
			Network.RemoveRPCs(player);
			Network.DestroyPlayerObjects(player);
		}
	}

}